package com.restaurant.application.couponmanage;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.UID;

/**
 * @author Administrator
 */
public class CouponManageDesc extends UnitDescription {

    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(CouponManage.class, "CouponManageData");
        desc.nextBean("CouponManageData")
                .add("id", String.class)
                .add("number", String.class)
                .add("createTime", Long.class)
                .add("modifyTime", Long.class)
                .add("receiveTime", Long.class)
                .add("endTime", Long.class)
                .add("type", String.class)
                .add("modality", String.class)
                .add("fullMoney", Double.class)
                .add("minusMoney", Double.class)
                .add("shopUid", UID.class)
                .add("shopName", String.class)
                .add("remarks", String.class)
                .add("totalAmount", Integer.class)
                .add("amount", Integer.class)
                .add("state", String.class)
                .add("limitId", Integer.class)
                .add("limitAccount", Integer.class)
        ;

        desc.nextBean("CreatePateTypeData").add("type", String.class);

        desc.addUiFunction("save", "CouponManageData");
        desc.addUiFunction("cancel", null);
        desc.run("./");
    }
}
